package cn.itcast.bos.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import cn.itcast.bos.domain.base.Courier;

public interface CourierService {

	/**
	 * 保存Courier
	 * */
	public void save(Courier courier);

	/**
	 * 无条件分页查询Courier
	 * */
	public Page<Courier> findPageData(Pageable pageable);
	
	/**
	 * 有条件分页查询Courier
	 * */
	public Page<Courier> findPageDataCification(Specification<Courier> specification,Pageable pageable);
	
	/**
	 * 作废Courier
	 * */
	public void deleteCourier(String[] idsArray);

	/**
	 * 还原Courier
	 * */
	public void restoreCourier(String[] idsArray);

	public List<Courier> findnoassociation();

	public List<Courier> findByFixedAreaId(String fixedAreaId);
}
